package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerGetPlayerOnlineLocationListResponse extends BaseQLResponse
{
    /// <summary>
    /// 玩家位置信息列表字符串，用逗号分隔。
    /// 示例：全部房间,3D捕鱼-房间1,水浒传-房间3
    /// </summary>
    public String LocationString;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj.getJSONObject("error_response");
        if (t != null && !t.isNullObject())
        {
            ErrCode = t.getString("code");
            ErrMsg = t.getString("msg");
        }
        else
        {
            t = jsonObj.getJSONObject("butler_get_player_online_location_list_response");
            if (t.has("location_string"))
                LocationString = t.getString("location_string");
        }
    }
}
